<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模块配置</title>
    <link rel="stylesheet" href="./css/style.css">
    <link rel="stylesheet" href="./css/module-config.css">
</head>
<body>
    <div class="container">
        <h1>模块配置</h1>
        
        <!-- 连接状态显示 -->
        <div class="status-box">
            <span class="status-label">连接状态:</span>
            <span class="status-value" id="connection-status">未连接</span>
        </div>
        
        <!-- 模块配置表单 -->
        <form id="module-config-form">
            <div class="form-group">
                <label for="module-title">模块标题</label>
                <input type="text" id="module-title" required>
            </div>
            
            <div class="form-group">
                <label for="module-type">模块类型</label>
                <select id="module-type" required>
                    <option value="display">数据显示</option>
                    <option value="button">按钮</option>
                    <option value="input">输入框</option>
                </select>
            </div>
            
            <div class="form-group" id="button-text-group" style="display:none;">
                <label for="button-text">按钮文本</label>
                <input type="text" id="button-text">
            </div>
            
            <div class="form-group" id="input-placeholder-group" style="display:none;">
                <label for="input-placeholder">输入框提示</label>
                <input type="text" id="input-placeholder">
            </div>
            
            <div class="form-group">
                <label for="module-image">模块图片</label>
                <input type="file" id="module-image" accept="image/*">
            </div>
            
            <button type="submit" class="submit-btn">保存配置</button>
        </form>
    </div>
    
    <script src="./js/module-config.js"></script>
</body>
</html>